package com.smallyang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smallyang.domain.entity.Article;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author 杨森
 * @description:
 * @date 2023年05月11日 22:08
 */

public interface ArticleMapper extends BaseMapper<Article> {
    @Update("update xy_article set view_count=#{viewcount} where id =#{id}")
    public int updateByIDD(@Param("viewcount")Long viewcount,@Param("id") Long id);
}
